package com.igeek.boot.controller;

import com.igeek.service.HelloService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author: zhiyu
 * @Date:19:35
 * @DESC:
 */
@RestController
public class StartController {
    @Resource
    private HelloService helloService;
    @GetMapping("/hello")
    public String hello(String username){
        String hello = helloService.hello(username);
        return hello;
    }

}
